
package org.apache.solr.analysis;

import java.io.Reader;
import org.apache.lucene.analysis.*;

public abstract class SolrAnalyzer extends Analyzer {

    int posIncGap = 0;

    public void setPositionIncrementGap(int gap) {
        posIncGap = gap;
    }

    @Override
    public int getPositionIncrementGap(String fieldName) {
        return posIncGap;
    }

    @Override
    protected Reader initReader(String fieldName, Reader reader) {
        return reader;
    }
}
